home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_shw_fogswitch.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  61 lines

  1. # Jones 3D Cog Script
  2. #
  3. # shw_fogswitch.cog
  4. #
  5. # The Fog Cog, heh
  6. #
  7. # [CMG]
  8. #
  9. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.  
  14.         message startup
  15.         message crossed
  16.         
  17.         thing   player  local
  18.         
  19.         surface   onsurf0        linkID=2
  20.         surface   onsurf1        linkID=2
  21.         surface   onsurf2        linkID=2
  22.         surface   onsurf3        linkID=2
  23.         
  24.         surface   offsurf0       linkID=3
  25.         surface   offsurf1       linkID=3
  26.         surface   offsurf2       linkID=3
  27.         surface   offsurf3       linkID=3
  28.                 
  29.         
  30.         
  31. end
  32.  
  33. # ========================================================================================
  34. code
  35.  
  36. startup:
  37.         player = GetLocalPlayerThing(); 
  38.         #regular = VectorSet(10.0, 20.0, 40.0);
  39.         return;
  40.         
  41. # ========================================================================================
  42. crossed:
  43.         
  44.         If ((GetSenderID() == 3) && (GetSourceRef() == player))
  45.                 {
  46.                 SetFog(0, '0.0 0.0 0.0', 20, 250);
  47.                 }
  48.                 
  49.         If ((GetSenderID() == 2) && (GetSourceRef() == player))
  50.                 {
  51.                 SetFog(1, '0.1 0.2 0.4', 20, 150);
  52.                 }
  53.                 
  54. return;
  55.         
  56.  
  57. # ========================================================================================
  58. end
  59.  
  60.         
  61.